package com.xs.room.auth.controller;


import com.xs.room.auth.entity.User;
import com.xs.room.auth.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;


import java.util.List;

@RestController
@RequestMapping("users")
public class AuthController {

    @Autowired
    private UserMapper userMapper;

    @GetMapping
    public List<User> listUser() {
        return userMapper.list();
    }

}
